﻿
namespace Tree
{
    class UMinusNode : Node
    {
        public UMinusNode(Node node)
        {
            _node = node;
        }
        //public override double Calc()
        //{
        //    return _num;
        //}
        public override double Result
        {
            get
            {
                return _node.Result;
            }
        }
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    //disposed managed resource
                    _node = null;
                }
                // release unmanaged resource
            }
            _disposed = true;

            // if available, call to base class
            // base.Dispose(disposing);
        }


        protected bool _disposed = false;
        private Node _node;
    }
}